<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<%@ include file="inc/head.jsp" %>        
    
<title>修改用户</title>
</head>
<body>  
<!--Begin Header Begin-->
	
<%@ include file="inc/head2.jsp" %>
	
<%@ include file="inc/shopping.jsp" %>
	
<!--End Header End--> 
	<div class="i_bg bg_color">
	
    <div class="m_content">
        
	<%@ include file="inc/m_left.jsp" %>
	
	<div class="m_right" id="content">
		<div class="mem_tit">
			修改用户
		</div>
		<br>
		<form action="UpdateUserInfoServlet?id=${list.id }" method="post" id="userAdd" onsubmit="return checkUser();">
			<table border="0" class="add_tab" style="width:930px;" cellspacing="0" cellpadding="0">
				<tbody>
					<tr>
						<td width="135" align="right">用户姓名</td>
						<td colspan="3" style="font-family:'宋体';">
							<input type="text" value="${list.loginName }" class="add_ipt" name="loginName">
							<input type="hidden" value="${list.id }" name="id">
						</td>
					</tr>
					<tr>
						<td width="135" align="right">真实姓名</td>
						<td>
							<input type="text" value="${list.userName }" class="add_ipt" name="userName">
						</td>
					</tr>
	
					<tr>
						<td width="135" align="right">身份证号</td>
						<td>
							<input type="text" value="${list.identityCode }" class="add_ipt" name="identityCode" id="identityCode">
						</td>
					</tr>
					<tr>
						<td width="135" align="right">电子邮箱</td>
						<td>
							<input type="text" value="${list.email }" class="add_ipt" name="email" id="email">
						</td>
					</tr>
					<tr>
						<td width="135" align="right">手机</td>
						<td>
							<input type="text" value="${list.mobile }" class="add_ipt" name="mobile" id="mobile">
						</td>
					</tr>
					<tr>
						<td width="135" align="right">用户类型</td>
						<td>
							<select name="type">
								<option value="1" <c:if test="${list.type == 1 }">selected</c:if>>管理员</option>
								<option value="0" <c:if test="${list.type == 0 }">selected</c:if>>普通用户</option>
							</select>
						</td>
					</tr>
					<tr>
						<td></td>
						<td>
	
							<input type="submit" value="修改信息" class="s_btn" onclick="addUser();">
	
						</td>
					</tr>
				</tbody>
			</table>
		</form>
	</div>
</div>

<%@ include file="inc/footer.jsp" %>

</div>
</body>

</html>
